// 用来获取 动态参数
import {useParams} from 'react-router-dom'
export default function Info(){
    // 获取动态参数
    let {goodsname,price} = useParams();
    console.log(goodsname)
    return (
        <div>
            <h1>详情页----{goodsname}----{price}</h1>
        </div>
    )
}